public class HF_ClientWSAccount{
@future (callout=true)
      public static void AddAccount(set<Id> accset) {
      string outputresult;
      List<Account> accList = new List<Account>([select Id,Name,Description,Partner_ID__c,StatusCode__c, HFH_Organization_Status__c,Account_Type_Code__c from Account where ID In: accset]); 
      WebServiceFinal4.BasicEndpoint pimswebservice = new WebServiceFinal4.BasicEndpoint();
      for(account acc: accList){
      
      //Stores Account details in AccountWrapper for Insert
            WebServiceFinal2.AccountWrapper accWrapper=new WebServiceFinal2.AccountWrapper();
            accWrapper.AccountName=acc.Name;
            accWrapper.AccountType=acc.Account_Type_Code__c;
            accWrapper.DataOn=system.DateTime.Now();
            accWrapper.Description=acc.Description;
            accWrapper.SfdcAccountID= acc.Id;
            accWrapper.HFHIPartnerID=acc.Partner_ID__c;
            accWrapper.Status=acc.StatusCode__c;
            
       try
       {
            outputresult=pimswebservice.AddAccount(accWrapper);
            system.debug('#######'+outputresult);
       }
        catch(Exception ex)
          {
          system.debug('output from webservice: '+ex);       
          }
        
       }       
}  
    
    
@future (callout=true)
public static void UpdateAccount(set<Id> accset) {
      string outputresult;
      List<Account> accList = new List<Account>([select Id,Name,Description,Partner_ID__c,StatusCode__c, HFH_Organization_Status__c,Account_Type_Code__c from Account where ID In: accset]); 
      WebServiceFinal4.BasicEndpoint pimswebservice = new WebServiceFinal4.BasicEndpoint();
      for(account acc: accList){
            
      //Stores Account details in AccountWrapper for Update
            WebServiceFinal2.AccountWrapper accWrapper=new WebServiceFinal2.AccountWrapper();
            accWrapper.AccountName=acc.Name;
            accWrapper.AccountType=acc.Account_Type_Code__c;
            accWrapper.DataOn=system.DateTime.Now();
            accWrapper.Description=acc.Description;
            accWrapper.SfdcAccountID= acc.Id;
            accWrapper.HFHIPartnerID=acc.Partner_ID__c;
            accWrapper.Status=acc.StatusCode__c;
        
       try
       {
             outputresult=pimswebservice.UpdateAccount(accWrapper);
             system.debug('#######'+outputresult);
       }
       catch(Exception ex)
          {
             system.debug('output from webservice: '+ex);       
          }
        
        }
}       
}